package com.shangs.platform.common.persistence.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 栏目
 * </p>
 *
 * @author shangs
 * @since 2017-10-26
 */
@TableName("cms_catalog")
public class CmsCatalog extends Model<CmsCatalog> {

    private static final long serialVersionUID = 1L;

    /**
     * 目录id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 父ID
     */
	@TableField("parent_id")
	private Long parentId;
    /**
     * 中文名
     */
	private String name;
	/**
	 * 层级
	 */
	private Integer levels;
    /**
     * 模板路径
     */
	private String path;
    /**
     * 描述
     */
	private String content;
    /**
     * 排序
     */
	private Integer sort;
    /**
     * 状态//radio/2,隐藏,1,显示
     */
	private Integer status;
    /**
     * 类型 1 普通目录 2 a标签 3 a标签_blank 4 直接加载url信息
     */
	private Integer type;
    /**
     * 跳转地址
     */
	@TableField("jump_url")
	private String jumpUrl;
    /**
     * 素材类型
     */
	@TableField("material_type")
	private Integer materialType;
    /**
     * 站点ID
     */
	@TableField("site_id")
	private Long siteId;
    /**
     * SEO title
     */
	@TableField("seo_title")
	private String seoTitle;
    /**
     * SEO keywords
     */
	@TableField("seo_keywords")
	private String seoKeywords;
    /**
     * SEO description
     */
	@TableField("seo_description")
	private String seoDescription;
    /**
     * 更新时间
     */
	@TableField("update_time")
	private Date updateTime;
    /**
     * 更新人
     */
	@TableField("update_id")
	private Integer updateId;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 创建者
     */
	@TableField("create_id")
	private Integer createId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getLevels() {
		return levels;
	}

	public void setLevels(Integer levels) {
		this.levels = levels;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getJumpUrl() {
		return jumpUrl;
	}

	public void setJumpUrl(String jumpUrl) {
		this.jumpUrl = jumpUrl;
	}

	public Integer getMaterialType() {
		return materialType;
	}

	public void setMaterialType(Integer materialType) {
		this.materialType = materialType;
	}

	public Long getSiteId() {
		return siteId;
	}

	public void setSiteId(Long siteId) {
		this.siteId = siteId;
	}

	public String getSeoTitle() {
		return seoTitle;
	}

	public void setSeoTitle(String seoTitle) {
		this.seoTitle = seoTitle;
	}

	public String getSeoKeywords() {
		return seoKeywords;
	}

	public void setSeoKeywords(String seoKeywords) {
		this.seoKeywords = seoKeywords;
	}

	public String getSeoDescription() {
		return seoDescription;
	}

	public void setSeoDescription(String seoDescription) {
		this.seoDescription = seoDescription;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getUpdateId() {
		return updateId;
	}

	public void setUpdateId(Integer updateId) {
		this.updateId = updateId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Integer getCreateId() {
		return createId;
	}

	public void setCreateId(Integer createId) {
		this.createId = createId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CmsCatalog{" +
			"id=" + id +
			", parentId=" + parentId +
			", name=" + name +
			", levels=" + levels +
			", path=" + path +
			", content=" + content +
			", sort=" + sort +
			", status=" + status +
			", type=" + type +
			", jumpUrl=" + jumpUrl +
			", materialType=" + materialType +
			", siteId=" + siteId +
			", seoTitle=" + seoTitle +
			", seoKeywords=" + seoKeywords +
			", seoDescription=" + seoDescription +
			", updateTime=" + updateTime +
			", updateId=" + updateId +
			", createTime=" + createTime +
			", createId=" + createId +
			"}";
	}
}
